{if $deleted}
<p class="block">{$deleted}</p>
{/if}

{if $noResults}
<p class="block">{$noResults}</p>
{else}

{if $pager}
<div class='pager'>
{$pager->links}
</div>
{/if}
{foreach item=entry from=$entries}

<div class="comment">
<div class="commentHead {if $entry.idOwner == $idOwner}owner{/if}">

{if $entry.avatarURL}
<img src="{$entry.avatarURL}" width="20px" height="20px"></img>
{else}
<img src="{$filepath}/file/peopletab/image/avatar.gif" width="20px" height="20px"></img>
{/if}
<a href="{$entry.domain}/{$entry.userName}/Profile">{$entry.userName}</a> | {$entry.dateAdded|date_format:"%A, %B %e, %Y %I:%M %p"}
{if $user->userStatus == OWNER_USER_STATUS}
<a class="commentDel" href="{$uriPath}/{$request->ownerName}/GuestBook/?delete={$entry.idGuestBook}">[Delete Comment]</a>
{/if}
</div>
<div class="commentBody">{$entry.message}</div>
</div>

{/foreach}

{if $pager}
<div class='pager'>
{$pager->links}
</div>
{/if}
{/if}


{if $user->userStatus == OWNER_USER_STATUS || $user->userStatus == NORMAL_USER_STATUS}
<div id="commentForm">
<form {$form.attributes}>
{$form.hidden}
{$form.message.html}
<center>{$form.btnSubmit.html}</center>
</form>
</div>

{/if}
